package com.baixw.singleton;

import java.io.IOException;
import java.util.Properties;

/**
 *
 */
public class Singleton3 {
    public static final Singleton3 INSTANCE;
    private String info;

    static {
        Properties pop = new Properties();
        try {
            pop.load(Singleton3.class.getClassLoader().getResourceAsStream("xxx.properties"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        INSTANCE = new Singleton3(pop.getProperty("info"));
    }

    private Singleton3(String info) {
        this.info = info;
    }

}
